<style type="text/css">
#gallery { padding: 5px; 30px;
}
</style>
<script>
get_calendar('modules/ajax/calendar.php');
$(document).ready(function() {
	var galleries = $('.ad-gallery').adGallery({
		loader_image: site_url+'images/ad-gallery/loader.gif',
	  // Width of the image, set to false and it will 
	  // read the CSS width
		width: 600, 
	  // Height of the image, set to false and it 
	  // will read the CSS height
	 	 height: 400
	});
	galleries[0].settings.effect = 'fade';
	
	var triggers = $(".view").overlay({
	// some mask tweaks suitable for modal dialogs
		mask: {
		color: '#ebecff',
		loadSpeed: 200,
		opacity: 0.2
	},
	
	closeOnClick: true
	});
	
	
	var formtig = $("a[rel]").overlay({
 
		mask: {
			color: '#ebecff',
			loadSpeed: 200,
			opacity: 0.8
		},
		top: 50,
		left: 400,
		onBeforeLoad: function() {
		
			// grab wrapper element inside content
			var wrap = this.getOverlay().find(".contentWrap");
			
			// load the page specified in the trigger
			wrap.load(this.getTrigger().attr("href"));
			$("#myform").validator();
		}
	});
	
});

</script>
<div class="modal" id="package_gallery">
  <!--Gallery Start-->
  <div id="gallery" class="ad-gallery">
    <div class="ad-image-wrapper"></div>
    <div class="ad-controls" style="display:none;"></div>
    <div class="ad-nav">
      <div class="ad-thumbs">
        <ul class="ad-thumb-list" >
          <?php
   
            $img_arr = array();
            $img_arr['type'] = 'wedding-package';
            $img_arr['size'] = 'thumb';
            $img_arr['width'] = 91;
            $img_arr['height'] = 42;
              for($i=0;$i<count($galleryArr);$i++) { 
                 $img_arr['title'] = $galleryArr[$i]['image_title'];
                 $img_arr['alt'] = $galleryArr[$i]['image_description'];
                 $img_arr['image'] = $galleryArr[$i]['image'];
	             $img_arr['class'] = "class='image$i'";
              ?>
          <li> <a href="<?=_SITE_URL.'shaadi-images/wedding-package/'.$img_arr['image']?>">
            <?=image_url($img_arr)?>
            </a> </li>
          <? } ?>
        </ul>
      </div>
    </div>
    <div class="cl"></div>
  </div>
  <!--Gallery Ends-->
</div>
<div class="rightcontainer">
  <div class="PackageAmount"><del>र</del>
    <?=$parr["price"]?>
  </div>
  <?php
       if(count($galleryArr)) { ?>
  <div class="gallery">
    <div class="thumbheading">
      <div class="middbg">
        <div class="linebtm">Gallery</div>
      </div>
    </div>
    <ul>
      <?php
    $img_arr = array();
	$img_arr['type'] = 'wedding-package';
	$img_arr['size'] = 'thumb';
    
	$img_arr['width'] = 91;
	$img_arr['height'] = 42;
    for($i=0; $i<count($galleryArr);$i++) {
    	$img_arr['title'] = $galleryArr[$i]['image_title'];
         $img_arr['image'] = $galleryArr[$i]['image'];
    ?>
      <li><a href="#">
        <?=image_url($img_arr)?>
        </a></li>
      <? } ?>
      <div class="cl"></div>
    </ul>
    <a href="#" rel="#package_gallery"  class="view">View all</a>
    <div class="cl"></div>
  </div>
  <? } ?>
  <div class="ratingDis">
    <div class="thumbheading">
      <div class="middbg">
        <div class="linebtm">Rating Distribution : </div>
      </div>
    </div>
    <div class="cl"></div>
    <div class="venubar">
      <!--<img src="<?=_SITE_URL?>images/venue.jpg" alt="" />-->
      <table width="90%" border="0" cellspacing="2" cellpadding="0">
        <tr>
          <td width="25%">Venu</td>
          <td width="70%"><div class="graph">
              <div>
                <div class="bar">
                  <div> </div>
                </div>
              </div>
            </div></td>
          <td width="5%">3</td>
        </tr>
        <tr>
          <td>Decor</td>
          <td><div class="graph">
              <div>
                <div class="bar">
                  <div> </div>
                </div>
              </div>
            </div></td>
          <td width="5%">2</td>
        </tr>
        <tr>
          <td>Food</td>
          <td><div class="graph">
              <div>
                <div class="bar">
                  <div> </div>
                </div>
              </div>
            </div></td>
          <td width="5%">3</td>
        </tr>
        <tr>
          <td>Catering</td>
          <td><div class="graph">
              <div>
                <div class="bar">
                  <div> </div>
                </div>
              </div>
            </div></td>
          <td width="5%">4</td>
        </tr>
      </table>
    </div>
  </div>
  <div class="calender">
    <div class="thumbheading">
      <div class="middbg">
        <div class="linebtm">Calender </div>
      </div>
    </div>
    <div  style="float:left;">
      <p id="pcaledar"></p>
    </div>
    <div class="cl"></div>
  </div>
  <div class="managew">
    <div class="thumbheading">
      <div class="middbg">
        <div class="linebtm">Wedding Tips</div>
      </div>
    </div>
    <p>
      <?=trimstr($weddingTips[0]['tips_short_desc'],100);?>
    </p>
    <a href="#" class="view noMrg" >Know More..</a>
    <div class="cl"></div>
  </div>
  <div class="fr btmcontainer small">
    <?php
             $img_arr = array();
            $img_arr['type'] = 'wedding-package';
            $img_arr['size'] = 'small';
            $img_arr['width'] = 110;
            $img_arr['height'] = 63;
            $img_arr['class'] = ' class="thumb" align="left" ';
            for($i=0;$i<count($radPackage);$i++) {
             $img_arr['image'] = $radPackage[$i]['package_image'];
             $img_arr['title'] = $radPackage[$i]['title'];
             $class = ($i == 1)?' bnone':'';
            
            ?>
    <div class="blogs <?=$class?>">
      <div class="fl">
        <?=image_url($img_arr)?>
        <!-- <img src="<?=_SITE_URL?>images/themethumb.jpg" align="left" alt="" class="thumb" /> -->
      </div>
      <div class="fl content">
        <h3>
          <?=$radPackage[$i]['title']?>
        </h3>
        <p>
          <?=trimstr($radPackage[$i]['short_description'],100);?>
        </p>
        <a href="<?=_SITE_URL.'package-detail/'.clean_url($radPackage[$i]['package_url'])?>" class="viewbtn">View Details</a> </div>
      <div class="cl"></div>
    </div>
    <? } ?>
  </div>
</div>
